package sweezy.swf.tools.flex
{
	import sweezy.core.reflect.IProperty;

	public class Property
	{

		public var name:String;

		public var type:Class;

		public function Property(property:IProperty, name:String, type:Class)
		{
			if (property === null)
			{
				this.type = type;
				this.name = name;
			}
			else
			{
				this.type = property.type.rawClass;
				this.name = property.name;
			}
		}
	}
}
